package cn.lili.controller.feign.verification;

import cn.lili.common.security.enums.SceneEnums;
import cn.lili.modules.verification.client.VerificationServiceClient;
import cn.lili.modules.verification.entity.enums.VerificationEnums;
import cn.lili.modules.verification.service.VerificationService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * VerificationFeignController
 *
 * @author Chopper
 * @version v1.0
 * 2021-11-08 11:47
 */
@RestController
@RequiredArgsConstructor
public class VerificationFeignController implements VerificationServiceClient {
    private final VerificationService verificationService;

    @Override
    public boolean check(String uuid, SceneEnums sceneEnums, VerificationEnums verificationEnums) {
        return verificationService.check(uuid, sceneEnums, verificationEnums);
    }
}
